package com.gui.design.factory.simple;

public class JdStore {

    public static void main(String[] args) {
        PhoneFactory factory = new PhoneFactory();
        IPhone phone = factory.createInstance("hw");
        phone.play();
        phone = factory.createInstance("apple");
        phone.play();
        phone = factory.createInstance("Redmi");
        phone.play();
    }
}
